package org.moze.service;

import org.moze.mapper.TbUserMapper;
import org.moze.pojo.TbUser;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    public final TbUserMapper userMapper;

    public UserService(TbUserMapper userMapper) {
        this.userMapper = userMapper;
    }

    public TbUser findUserById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

}
